/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.fd.wpx.authorizating.session;

import com.fd.wpx.authorizating.pojo.PermissionContext;
import com.fd.wpx.common.pojo.BlogResult;

import java.io.Serializable;

public interface RemoteSessionService {
    public BlogResult getSession(Serializable sessionId);
    public void saveSession(Serializable sessionId,String session);
    public void updateSession(Serializable sessionId,String session);
    public void deleteSession(Serializable sessionId);
    public PermissionContext getPermissions(String username);
    public PermissionContext getPermissionsByRole(String role);
}
